package com.ty.gpiotest;

public class Gpio {
	static{
		 System.loadLibrary("ty_gpio");
	}
	
	public static final int GET_MODE_STA = 0;
	public static final int SET_MODE_0 = 1;  // 00
	public static final int SET_MODE_1 = 2;  // 01
	public static final int SET_MODE_2 = 3;  // 10
	public static final int SET_MODE_3 = 4;  // 11

	public static final int GET_DIR_STA = 5; 
	public static final int SET_DIR_IN = 6;  // 0
	public static final int SET_DIR_OUT = 7; // 1

	public static final int GET_PULLEN_STA = 8; 
	public static final int SET_PULLEN_DISABLE = 9;  // 0
	public static final int SET_PULLEN_ENABLE = 10;   // 1

	public static final int GET_PULL_STA = 11;
	public static final int SET_PULL_DOWN = 12;  // 0
	public static final int SET_PULL_UP = 13;    // 1

	public static final int GET_INV_STA = 14;
	public static final int SET_INV_ENABLE = 15;  // 1
	public static final int SET_INV_DISABLE = 16; // 0

	public static final int GET_DATA_IN = 17;
	public static final int GET_DATA_OUT = 18;
	public static final int SET_DATA_LOW = 19;  // 0
	public static final int SET_DATA_HIGH = 20; // 1
	
	public static native int Cmd(int cmd,int pin);
}
